@extends('auth.app')

@section('container')
    <div class="container">
        <div class="row">
            <div class="login-page login-box col-sm-6 col-sm-offset-3">
                <div class="center-container">
                    <section class="login-panel clearfix">
                        <div class="panel-header-container text-center">
                            <p class="title-text">登录</p>
                            <hr>
                        </div>
                        <div class="panel-body">
                            <form id="login_form" action="{{ route('login') }}" accept-charset="UTF-8" method="post">
                                {{csrf_field()}}
                                <div class="fields">
                                    <div class="field email-or-mobile-no-field">
                                        <label class="inline-block" for="email_or_mobile_no">手机号</label>
                                        <input id="telephone" type="text" name="telephone" value="{{ old('telephone') }}" required autofocus>
                                    </div>

                                    <div class="field password-field">
                                        <label for="password">密码</label>
                                        <input type="password" name="password" id="password" autocomplete="off" autofocus="autofocus" />
                                    </div>

                                    <div class="field error-message-field helper-error-message-container identity-validate-container gd-hide">

                                        @if ($errors->has('telephone'))
                                            <label class="validate-invalid gd-icon-times-circle ">{{ $errors->first('telephone') }}</label>
                                        @endif

                                        @if ($errors->has('password'))
                                            <label class="validate-invalid gd-icon-times-circle ">{{ $errors->first('password') }}</label>
                                        @endif

                                    </div>

                                    <div class="submit-field">
                                        <button name="button" type="submit" class="gd-btn gd-btn-primary-solid gd-btn-thick">
                                            <span class="text">登录</span>
                                        </button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </section>
                </div>
            </div>
        </div>
    </div>
@endsection